package com.bootdo.shop.service;

import com.bootdo.shop.domain.ProductCategoryDO;

import java.util.List;
import java.util.Map;

/**
 * 商品分类关联表
 * 
 * @author yhg
 * @email 411741962@qq.com
 * @date 2017-12-15 14:06:51
 */
public interface ProductCategoryService {
	
	ProductCategoryDO get(Long productCategoryId);
	
	List<ProductCategoryDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(ProductCategoryDO productCategory);
	
	int update(ProductCategoryDO productCategory);
	
	int remove(Long productCategoryId);
	
	int batchRemove(Long[] productCategoryIds);
	/***根据产品id获取产品类型*/
	ProductCategoryDO getByProductId(Long productId);
}
